<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
 */

use Hyperf\HttpServer\Router\Router as Route;
use App\Middleware\AdminMiddleware;
// 该 Group 下的所有路由都将应用配置的中间件
Route::get('/login', 'Admin\LoginController@index');
Route::post('/login_do', 'Admin\LoginController@login_do');
Route::group(['middleware' => [AdminMiddleware::class]],function () {

	Route::get('/index','Admin\IndexController@index');
	Route::get('/home','Admin\IndexController@home');

	Route::get('/login_up', 'Admin\LoginController@login_up');

	Route::get('/member_edit','Admin\LoginController@member_edit');
	Route::post('/update_password','Admin\LoginController@login_edit_pwd');
    //账号管理
    Route::get('/admin/account/company','Admin\AccountController@company');
    Route::get('/admin/account/son','Admin\AccountController@son');
    Route::get('/admin/account/order','Admin\AccountController@order');
    Route::get('/admin/account/delete','Admin\AccountController@delete');
    Route::any('/admin/account/add','Admin\AccountController@add');
    Route::any('/admin/account/add_process','Admin\AccountController@add_process');
    Route::any('/admin/account/son_add','Admin\AccountController@son_add');
    Route::any('/admin/account/son_add_process','Admin\AccountController@son_add_process');
    Route::any('/admin/account/son_delete','Admin\AccountController@son_delete');
    Route::any('/admin/account/son_role','Admin\AccountController@son_role');
    Route::any('/admin/account/son_role_add','Admin\AccountController@son_role_add');
    Route::any('/admin/account/order_operate','Admin\AccountController@order_operate');
    Route::any('/admin/account/order_agreement','Admin\AccountController@order_agreement');
    //账号管理结束

    //操作日志
    Route::any('/admin/account/oprate_log','Admin\AccountController@oprate_log');


    //订单管理
    Route::any('/admin/order/order_find','Admin\OrderController@order_find');
    Route::any('/admin/order/order_check','Admin\OrderController@order_check');
    Route::any('/admin/order/order_product','Admin\OrderController@order_product');
    Route::any('/admin/order/order_driver','Admin\OrderController@order_driver');
    Route::any('/admin/order/driver_do','Admin\OrderController@driver_do');
    Route::any('/admin/order/servicer_manager','Admin\OrderController@servicer_manager');
    Route::any('/admin/order/servicer_add_manager','Admin\OrderController@servicer_add_manager');
    Route::any('/admin/order/servicer_change','Admin\OrderController@servicer_change');
    Route::any('/admin/order/servicer_add','Admin\OrderController@servicer_add');
    Route::any('/admin/order/servicer_delete','Admin\OrderController@servicer_delete');
    Route::any('/admin/order/order_accounte','Admin\OrderController@order_accounte');
    Route::any('/admin/order/cycle','Admin\OrderController@cycle');
    Route::any('/admin/order/card_cost','Admin\OrderController@card_cost');
    Route::any('/admin/order/store_cost','Admin\OrderController@store_cost');
    Route::any('/admin/order/freight_cost','Admin\OrderController@freight_cost');
    Route::any('/admin/order/building_pecent','Admin\OrderController@building_pecent');
    Route::any('/admin/order/pay_proof','Admin\OrderController@pay_proof');
    Route::any('/admin/order/driver_img','Admin\OrderController@driver_img');
    Route::any('/admin/order/driver_find','Admin\OrderController@driver_find');


    //供应商管理
    Route::any('/admin/supplyer/list','Admin\SupplyerController@list');
    Route::any('/admin/supplyer/add','Admin\SupplyerController@add');
    Route::any('/admin/supplyer/add_do','Admin\SupplyerController@add_do');
    Route::any('/admin/supplyer/log','Admin\SupplyerController@log');
    Route::any('/admin/supplyer/general','Admin\SupplyerController@general');


    //数据分析
    Route::any('/admin/analyse/sell_analyse','Admin\AnalyseController@sell_analyse');
    Route::any('/admin/analyse/servicer_analyse','Admin\AnalyseController@servicer_analyse');
    Route::any('/admin/analyse/company_analyse','Admin\AnalyseController@company_analyse');
    Route::any('/admin/analyse/driver_analyse','Admin\AnalyseController@driver_analyse');
    Route::any('/admin/analyse/profit','Admin\AnalyseController@profit');
    Route::any('/admin/analyse/order','Admin\AnalyseController@order');
    Route::any('/admin/analyse/export/{id}','Admin\AnalyseController@export');

    //财务管理
    Route::any('/admin/finance/report_list','Admin\FinanceController@report_list');
    Route::any('/admin/finance/performan_check','Admin\FinanceController@performan_check');
    Route::any('/admin/finance/basic_table','Admin\FinanceController@basic_table');
    Route::any('/admin/finance/get_table','Admin\FinanceController@get_table');
    Route::any('/admin/finance/pay_table','Admin\FinanceController@pay_table');
    Route::any('/admin/finance/driver_table','Admin\FinanceController@driver_table');
    Route::any('/admin/finance/get_table_detail','Admin\FinanceController@get_table_detail');
    Route::any('/admin/finance/basic_table_edite','Admin\FinanceController@basic_table_edite');
    Route::any('/admin/finance/basic_table_download','Admin\FinanceController@basic_table_download');
    Route::any('/admin/finance/get_table_edite','Admin\FinanceController@get_table_edite');
    Route::any('/admin/finance/get_table_download','Admin\FinanceController@get_table_download');
    Route::any('/admin/finance/get_table_accounts_edite','Admin\FinanceController@get_table_accounts_edite');
    Route::any('/admin/finance/get_table_detail_order','Admin\FinanceController@get_table_detail_order');
    Route::any('/admin/finance/get_table_detail_download','Admin\FinanceController@get_table_detail_download');
    Route::any('/admin/finance/pay_table_edite','Admin\FinanceController@pay_table_edite');
    Route::any('/admin/finance/pay_table_detail','Admin\FinanceController@pay_table_detail');
    Route::any('/admin/finance/pay_table_detail_download','Admin\FinanceController@pay_table_detail_download');
    Route::any('/admin/finance/pay_table_detail_order','Admin\FinanceController@pay_table_detail_order');
    Route::any('/admin/finance/pay_order_accounts_countadd','Admin\FinanceController@pay_order_accounts_countadd');


    //产品管理
    Route::any('/admin/product/list','Admin\ProductController@list');
    Route::any('/admin/product/add','Admin\ProductController@add');
    Route::any('/admin/product/delete','Admin\ProductController@delete');
    Route::any('/admin/product/add_do','Admin\ProductController@add_do');
    Route::any('/admin/product/upload','Admin\ProductController@upload');
    Route::any('/admin/product/upload_do','Admin\ProductController@upload_do');
    Route::any('/admin/product/price','Admin\ProductController@price');
    Route::any('/admin/product/price_do','Admin\ProductController@price_do');
    Route::any('/admin/product/img','Admin\ProductController@img');

    /*
     * 人员管理
     * */
    Route::any('/admin/member/servicer_list','Admin\MemberController@servicer_list');
    Route::any('/admin/member/driver_list','Admin\MemberController@driver_list');
    Route::any('/admin/member/servicer_delete','Admin\MemberController@servicer_delete');
    Route::any('/admin/member/servicer_add','Admin\MemberController@servicer_add');
    Route::any('/admin/member/driver_delete','Admin\MemberController@driver_delete');
    Route::any('/admin/member/driver_add','Admin\MemberController@driver_add');
    Route::any('/admin/member/servicer_add_do','Admin\MemberController@servicer_add_do');
    Route::any('/admin/member/driver_add_do','Admin\MemberController@driver_add_do');



    /*
     * 客户合同
     * */
    Route::any('/admin/customer/list','Admin\CustomerController@list');
    Route::any('/admin/customer/agreement_list','Admin\CustomerController@agreement_list');
    Route::any('/admin/customer/agreement_edite','Admin\CustomerController@agreement_edite');

    Route::any('/admin/customer/customer_delete','Admin\CustomerController@customer_delete');
    Route::any('/admin/customer/agreement_edite_do','Admin\CustomerController@agreement_edite_do');
    Route::any('/admin/customer/agreement_download','Admin\CustomerController@agreement_download');
    Route::any('/admin/customer/export_pdf','Admin\CustomerController@export_pdf');
    Route::any('/admin/customer/agreement_edite_process','Admin\CustomerController@agreement_edite_process');



	
});
